package org.lex.net.ftp;

import java.io.IOException;
import java.nio.charset.Charset;

import org.lex.net.event.ProtocolListener;


public interface IFTPClient extends IRFC959FTPClient {
	public void addProtocolListener(ProtocolListener l);

	public void removeProtocolListener(ProtocolListener l);

	/***************************************************************************
	 * RFC959 commands
	 **************************************************************************/
	public void openServer(String host, int port) throws IOException;

	public void closeServer() throws IOException;

	public boolean isServerOpen();

	public void setPassiveMode(boolean pasv);

	public void setServerCharset(Charset charset);

	public FTPURL getURL();
}
